/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const reworkRouter = {
  path: '/rework',
  component: Layout,
  hidden: false,
  redirect: '/rework/reworkSummary',
  name: 'Rework',
  meta: {
    title: 'rework',
    icon: 'el-icon-s-help'
  },
  children: [
    {
      path: 'failDef',
      component: () => import('@/views/rework/failDef'),
      name: 'FailDef',
      meta: { title: 'failDef' }
    },
    {
      path: 'failDetail',
      component: () => import('@/views/rework/failDetail'),
      name: 'FailDetail',
      meta: { title: 'failDetail' }
    },
    {
      path: 'reworkSummary',
      component: () => import('@/views/rework/reworkSummary'),
      name: 'ReworkSummary',
      meta: { title: 'reworkSummary' }
    },
    {
      path: 'failSummary',
      component: () => import('@/views/rework/failSummary'),
      name: 'FailSummary',
      meta: { title: 'failSummary' }
    },
    {
      path: 'cpkReport',
      component: () => import('@/views/rework/cpkReport'),
      name: 'CpkReport',
      meta: { title: 'cpkReport' }
    },
    {
      path: 'defectReporting',
      component: () => import('@/views/rework/defectReporting'),
      name: 'DefectReporting',
      meta: { title: 'defectReporting' }
    }
  ]
}

export default reworkRouter
